﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using System.Net.Mime;

namespace Meraz.Core.Net
{
    public class MailInfo
    {
        public MailMessage Message { get; set; }

        protected void AddAttachments(IEnumerable<string> files)
        {
            if (Message == null)
                Message = new MailMessage();
            foreach (string file in files)
            {
                Attachment attachment = new Attachment(file, MediaTypeNames.Application.Octet);
                Message.Attachments.Add(attachment);
            }
        }
    }
}
